Skip to content

TS1: TanStack Start on Workers - #2

Merged
pullely merged 1 commit into
mainfrom
orun/TS-2-tanstack-start-on-workers
Oct 29, 2026
Merged

pullely merged 1 commit into
mainfrom
orun/TS-2-tanstack-start-on-workers

Conversation

@pullely

@pullely pullely commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

vercel/vercel examples/tanstack-start (main 84878e5, Apache-2.0) in apps/web: TanStack Start 1.133 → 1.169 (Router 1.170) with React 19, Tailwind CSS 4 and lucide-react, Vite 8, built by Cloudflare's Vite plugin (@cloudflare/vite-plugin 1.66.0, TanStack Start's documented Cloudflare target) in place of Nitro into one Worker (dist/server) with Static Assets (dist/client). wrangler.jsonc describes the built Worker for the deploy's wrangler deploy --config wrangler.jsonc (main dist/server/index.js, no_bundle with the plugin's ESModule rule, assets dist/client), and vite.config.ts names the source entry the plugin builds; a dry-run deploy of it and of the plugin's own dist/server/wrangler.json upload the same modules. The server-functions demo keeps the todos in the visitor's own httpOnly cookie (src/data/todos.ts: JSON, capped at 50 × 100 characters and 3,800 encoded bytes, a todo that would not fit refused with its reason) instead of todos.json through node:fs, which a Worker has no disk for; 1.169 renames .inputValidator to .validator. The site's name is one seam (SITE_NAME in src/lib/site.ts, every page's <title>). The template's own biome.json is the lint (biome lint, Biome 2.2.4 as its schema names) and the code is made to pass it (button types, keys, a hook's dependencies); vite-tsconfig-paths gives way to Vite 8's own tsconfig paths; unused packages are dropped. The licence ships as apps/web/LICENSE, and apps/web/README.md lists every file changed. component.yaml (cloudflare-workers-assets-turbo) smokes the home page's nav, the API route's JSON and a 404. Tests (vitest): the name seam and the todo store. typecheck, lint, test and build are green; wrangler dev serves every route, the todos added through the POST server function and read back with the visitor's cookie.

🤖 Generated with Claude Code

vercel/vercel examples/tanstack-start (main 84878e5, Apache-2.0) in apps/web: TanStack Start 1.133 → 1.169 (Router 1.170) with React 19, Tailwind CSS 4 and lucide-react, Vite 8, built by Cloudflare's Vite plugin (@cloudflare/vite-plugin 1.66.0, TanStack Start's documented Cloudflare target) in place of Nitro into one Worker (dist/server) with Static Assets (dist/client). wrangler.jsonc describes the built Worker for the deploy's `wrangler deploy --config wrangler.jsonc` (main dist/server/index.js, no_bundle with the plugin's ESModule rule, assets dist/client), and vite.config.ts names the source entry the plugin builds; a dry-run deploy of it and of the plugin's own dist/server/wrangler.json upload the same modules. The server-functions demo keeps the todos in the visitor's own httpOnly cookie (src/data/todos.ts: JSON, capped at 50 × 100 characters and 3,800 encoded bytes, a todo that would not fit refused with its reason) instead of todos.json through node:fs, which a Worker has no disk for; 1.169 renames .inputValidator to .validator. The site's name is one seam (SITE_NAME in src/lib/site.ts, every page's <title>). The template's own biome.json is the lint (biome lint, Biome 2.2.4 as its schema names) and the code is made to pass it (button types, keys, a hook's dependencies); vite-tsconfig-paths gives way to Vite 8's own tsconfig paths; unused packages are dropped. The licence ships as apps/web/LICENSE, and apps/web/README.md lists every file changed. component.yaml (cloudflare-workers-assets-turbo) smokes the home page's nav, the API route's JSON and a 404. Tests (vitest): the name seam and the todo store. typecheck, lint, test and build are green; wrangler dev serves every route, the todos added through the POST server function and read back with the visitor's cookie.

Co-Authored-By: Claude <noreply@anthropic.com>
Orun-Task: TS-2
@pullely
pullely merged commit b178648 into main Oct 29, 2026
2 checks passed
@pullely
pullely deleted the orun/TS-2-tanstack-start-on-workers branch October 29, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants